#pragma once

#include "stream/IOpenable.h"


namespace stream {

namespace meta {
	class Size;
}

class Meta : public ::stream::IOpenable {
public:

	Meta(meta::Size * size = nullptr);
	virtual ~Meta();

	void size(meta::Size * sz){ _size = sz; }

	meta::Size & size();

protected:
	bool _open()override;
	void _close() override;

private:
	meta::Size * _size;
};

}//end namespace stream
